<html>

<head>
	<title><?php echo LANG_SPHERUS_FRAMEWORK." - ".$page_title; ?></title>
	<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
	<meta http-equiv = 'Content-Type' content = 'text/html; charset=windows-1251' >
	<?php
		$current_controller->helpers->html->css("default");
	?>
	<script language="JavaScript" type="text/javascript" src="/spherus_framework/core/classes/TreeMenu/tree.js"></script>
	<script language='JavaScript' src='/spherus_framework/spanel/includes/js/generator.js'></script>
	<script language='JavaScript' src='/spherus_framework/spanel/includes/js/ajax.js'></script>
	<link rel="shortcut icon" href="<?php echo IMAGES ?>/favicon.jpg" />
	
</head>

<body style = "vertical-align: top" onLoad="document.getElementById('slidein_context_menu').click(); if (document.getElementById('name')) {document.getElementById('name').focus(); document.getElementById('name').blur();};">	
	
	<script>
	//click prototyping for Firefox
	if (typeof HTMLElement != 'undefined')
	{
		 HTMLElement.prototype.click = function()
		 {
		 	var evt = this.ownerDocument.createEvent('MouseEvents');  
		 	evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);  
		 	this.dispatchEvent(evt);  
		 }		
	}
	</script>
	<!-- <a onclick = "document.getElementById('test_div').innerHTML = document.getElementById('main_menu_div').innerHTML; return false;">test</a> 
	<div id = 'test_div'></div>-->
	<table class="body" cellpadding="0" cellspacing="0" border="0" style = "vertical-align: top; top: 0px;">	
		<tr>
			<td height="1" colspan="2">
			<?php 
				$current_controller->IncludeThemeElement("topbar");
			?>
			</td>
		</tr>
		<tr>
			<td height="1" colspan="2" style = 'padding: 0px; margin: 0px;'>
				<?php
					$current_controller->IncludeThemeElement("topmenu");
				?>
			</td>
		</tr>
		<tr>
			<td valign = "top">
				<div id="context_menu" style = "width: 257px; overflow: auto;">	
					<?php 
						$current_controller->IncludeThemeElement("leftmenu");
//						Mootools::AccordionPane('id1', array(array('title'=>'Title1', 'content' => 'Content1 Content1 Content1 Content1 Content1 Content1 '), array('title'=>'Title2', 'content' => 'Content2 Content2 Content2 Content2 Content2 Content2 ')));
//						Mootools::AccordionPane('id2', array(array('title'=>'Title11', 'content' => 'Content11 Content11 Content11 Content11 Content11 Content11 '), array('title'=>'Title22', 'content' => 'Content22 Content22 Content22 Content22 Content22 Content22 ')));
					?>	
				</div>
			</td>
			<td valign="top" class="pagesource">
				<div id = "page_content">
					<?php
						echo $page_content;
					?>
				</div>
			</td>
		</tr>
	</table>
</body>
</html>